
package com.example.demo;

import com.example.xbrother.rule.aircondition.AirConditionPipeBean;
import com.example.xbrother.rule.aircondition.AirConditionPartsBean;
import com.example.xbrother.rule.aircondition.AirConditionTypeBean;
import com.example.xbrother.rule.battery.BatteryAirSwitchTypeBean;
import com.example.xbrother.rule.battery.BatteryOtherBean;
import com.example.xbrother.rule.battery.BatteryTypeBean;
import com.example.xbrother.rule.cabinet.CabinetChannelBean;
import com.example.xbrother.rule.distribution.DistributionBoxBean;
import com.example.xbrother.rule.distribution.DistributionLineBean;
import com.example.xbrother.rule.ups.UpsBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MySpringAppConfig {

    @Bean("mySpringBean")
    public MySpringBean create() {
        return new MySpringBean();
    }

    @Bean("ups")
    public UpsBean createUpsBean() {
        return new UpsBean();
    }

    @Bean("batteryType")
    public BatteryTypeBean createBatteryBean() {
        return new BatteryTypeBean();
    }

    @Bean("batteryAirSwitchType")
    public BatteryAirSwitchTypeBean createBatteryAirSwitchBean() {
        return new BatteryAirSwitchTypeBean();
    }

    @Bean("batteryOther")
    public BatteryOtherBean createBatteryOtherBean() {
        return new BatteryOtherBean();
    }

    @Bean("distributionBox")
    public DistributionBoxBean createDistributionBoxBean() {
        return new DistributionBoxBean();
    }

    @Bean("distributionLine")
    public DistributionLineBean createDistributionLineBean() {
        return new DistributionLineBean();
    }

    @Bean("cabinetChannel")
    public CabinetChannelBean createCabinetChannelBean() {
        return new CabinetChannelBean();
    }

    @Bean("airConditionType")
    public AirConditionTypeBean createAirConditionTypeBean() {
        return new AirConditionTypeBean();
    }

    @Bean("airConditionPipe")
    public AirConditionPipeBean createAirConditionMountedPositionBean() {
        return new AirConditionPipeBean();
    }

    @Bean("airConditionParts")
    public AirConditionPartsBean createAirConditionPartsBean() {
        return new AirConditionPartsBean();
    }

}
